﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SuperMarketSystem
{
    public partial class PaymentInterface : Form
    {
        public PaymentInterface()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            PayCash cash = new PayCash();
            cash.ShowDialog();
            this.DialogResult = cash.DialogResult;
            Dispose();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            PayCard card = new PayCard();
            card.ShowDialog();
            this.DialogResult = card.DialogResult;
            Dispose();
        }
    }
}
